package personal.xjl.plusdemo.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import personal.xjl.plusdemo.domain.Student;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
* @author kgy
* @description 针对表【student】的数据库操作Mapper
* @createDate 2024-12-03 11:15:46
* @Entity personal.xjl.plusdemo.domain.Student
*/
@Mapper
public interface StudentMapper extends BaseMapper<Student> {
    @Select("select * from Student where name=#{name} and password=#{password}")
    public List<Student> login(@Param("name") String name, @Param("password") String password);

}




